#ifndef RECORD_H
#define RECORD_H

#include <QString>
#include <QLabel>
#include <QIcon>

//QIcon record::id=new QIcon(":/others/res/Rank_icon.png");

class record //: public QWidget
{
    public:
    //QLabel icon;
    QString name;
    int rank;
    int score;
    //static QIcon id;
    record(int rank=0,QString name="",int score=0);
    //record(QWidget *parent=0,const QIcon& ic=id,int rank=0,QString name="",int score=0);

    friend QDataStream &operator<<(QDataStream &stream, const record& item);

    friend QDataStream &operator>>(QDataStream &stream, record &item);
};

#endif // RECORD_H
